import Home from '@/module/home/page/home.vue';
//导入view文件
import user_list from '@/module/system/page/user_list.vue';
import user_edit from '@/module/system/page/user_edit.vue';
import user_role from '@/module/system/page/user_role.vue';
import user_password from '@/module/system/page/user_password.vue';


import role_list from "@/module/system/page/role_list.vue";
import role_add from "@/module/system/page/role_add.vue";
import role_edit from "@/module/system/page/role_edit.vue";
import role_menu from "@/module/system/page/role_menu.vue";


//配置vue页面文件访问路径
export default [{
  path: '/',
  component: Home,
  name: '系统管理',      //菜单名称
  hidden: false,            //设置是否隐藏
  children: [
    // 页面管理
    {
      path: '/system/user/list', name: '用户管理', component: user_list, hidden: false
    },
    {
      path: '/system/user/edit:userId', name: '修改页面', component: user_edit, hidden: true
    }
    ,
    {
      path: '/system/user/role:userId', name: '用户授权', component: user_role, hidden: true
    },
    {
      path: '/system/user/password:userId', name: '修改密码', component: user_password, hidden: true
    }
    ,
    // 模板管理
    {
      path: '/system/role/list', name: '角色管理', component: role_list, hidden: false
    },
    {
      path: '/system/role/add', name: '新增角色', component: role_add, hidden: true
    },
    {
      path: '/system/role/edit:roleId', name: '编辑角色', component: role_edit, hidden: true
    },
    {
      path: '/system/role/menu:roleId', name: '角色授权', component: role_menu, hidden: true
    }


  ]
}]
